package com.example.back.controller;

import com.example.back.dto.req.OperatLogReq;
import com.example.back.dto.resp.OperatLogResp;
import com.example.back.service.OperatLogService;
import com.example.common.support.Result;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

@RestController
@Api(tags = "日志审计")
@RequestMapping("/DSys/OperatLog")
public class OperatLogController {


    @Resource
    private OperatLogService operatLogService;

    @ApiOperation(value = "获取日志审计列表", notes = "获取日志审计列表")
    @PostMapping(value = "/list")
    public Result<String[]> list(@RequestBody OperatLogReq req) {
        return Result.success(operatLogService.list(req));
    }

}
